import request from '@/utils/WMSRequest'

// 查询入库单列表
export function getReceiptOrderlist(query) {
  return request({
    url: '/wms/Inventory/receiptOrder/',
    method: 'get',
    params: query
  })
}

// 查询入库单详细
export function getReceiptOrder(id) {
  return request({
    url: '/wms/Inventory/receiptOrder/' + id + '/',
    method: 'get'
  })
}

// 新增入库单
export function addReceiptOrder(data) {
  return request({
    url: '/wms/Inventory/receiptOrder/',
    method: 'post',
    data: data
  })
}

// 修改入库单
export function updateReceiptOrder(data) {
  return request({
    url: '/wms/Inventory/receiptOrder/' + data.id + '/',
    method: 'patch',
    data: data
  })
}

// 删除入库单
export function delReceiptOrder(id) {
  return request({
    url: '/wms/Inventory/receiptOrder/' + id + '/',
    method: 'delete'
  })
}
